package com.ad.payload.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class IdDto extends PageDto{

    // ID
    @NotNull(message="id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String jielongId;

    public IdDto() {
    }

    public IdDto(@NotNull Long id) {
        this.id = id;
    }
}
